package goescape

import "errors"

// Escape code.
type Escape string

// Return set converted to error.
func (set Escape) Error() error {
	return errors.New(set.String())
}

// Return set converted to string.
func (set Escape) String() string {
	return string(set)
}
